import axios from '~/axios'

// 添加补贴申请支付记录
export function addSubsidyApplicationPayRecordApi(data) {
    return axios.post('/basic/lindi/subsidyApplicationPayRecord/addSubsidyApplicationPayRecord', data)
}

// 删除补贴申请支付记录
export function deleteSubsidyApplicationPayRecordBySubsidyApplicationPayRecordIdApi(subsidyApplicationPayRecordId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/subsidyApplicationPayRecord/deleteSubsidyApplicationPayRecordBySubsidyApplicationPayRecordId',
        params: {
            subsidyApplicationPayRecordId: subsidyApplicationPayRecordId
        }
    })
}

// 修改补贴申请支付记录
export function updateSubsidyApplicationPayRecordBySubsidyApplicationPayRecordIdApi(data) {
    return axios.put('/basic/lindi/subsidyApplicationPayRecord/updateSubsidyApplicationPayRecordBySubsidyApplicationPayRecordId', data)
}

// 分页查询补贴申请支付记录列表
export function getPageSubsidyApplicationPayRecordListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/subsidyApplicationPayRecord/getPageSubsidyApplicationPayRecordList',
        params: params
    })
}

// 根据ID查询补贴申请支付记录详情
export function getSubsidyApplicationPayRecordBySubsidyApplicationPayRecordIdApi(subsidyApplicationPayRecordId) {
    return axios.get(`/basic/lindi/subsidyApplicationPayRecord/getSubsidyApplicationPayRecordBySubsidyApplicationPayRecordId/${subsidyApplicationPayRecordId}`)
}

// 根据补贴申请ID查询支付记录列表
export function getSubsidyApplicationPayRecordListBySubsidyApplicationIdApi(subsidyApplicationId) {
    return axios.get(`/basic/lindi/subsidyApplicationPayRecord/getSubsidyApplicationPayRecordListBySubsidyApplicationId/${subsidyApplicationId}`)
}